Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 4 - Advanced Printing Features / Advanced Printing Features Reference
Functions / Working With QuickDraw GX Print Files


GXSavePrintFile

You can use the GXSavePrintFile function to save a print file object.

void GXSavePrintFile (gxPrintFile aPrintFile, FSSpec *pFileSpec);
aPrintFile
A reference to the print file object whose file you want to save.
pFileSpec
A pointer to a file system specification record.
DESCRIPTION
The GXSavePrintFile function writes an entire print file to disk. This file must previously have been opened with the GXOpenPrintFile function. To replace or update the print file, you can pass nil in the pFileSpec parameter. Otherwise, you can specify a name and location in the pFileSpec parameter to save the updated print file and leave the original print file intact.

This function compacts a print file by recovering any space no longer needed. Space becomes available when pages are removed or when a format no longer references any pages. This function also permanently saves any changes that you have made to the print file.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help